<p class="Paragraph">In this tab page, you can link certain events, which can occur in a form's control field, with a macro.</p>
</help:to-be-embedded>
<p class="Paragraph">This macro or this event procedure will be then initiated as soon as the event occurs. This assignment will be realized if you press the<span class="T1"> ... </span>button. A <help:link Id="67665" xmlns:help="http://openoffice.org/2000/help">dialog </help:link>will open which enables you to select the macro.</p>
<p class="Paragraph">Depending on the control, different events can take place. Therefore, only the events that make sense for the control and context currently selected are listed on the <span class="T1">Event</span> tab page. The following events are defined:</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place, before an action is triggered by clicking the control.</help:help-text> Clicking a Submit button initiates the "send" action, however, the actual "send" process is started only when the "When initiating" event occurs. With "Before commencing" you can still veto the process. If the linked method sends back FALSE, "When initiating" will not be executed.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs when an action is started.</help:help-text> If, for example, you have a Submit button in your form, the send process represents the action.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place, when the control loses the focus and the contents of the control were changed since it lost the focus.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if you enter or modify a text in an input field.</help:help-text></p>
<p class="Head2"><help:help-id value="HID_EVT_ITEMSTATECHANGED" xmlns:help="http://openoffice.org/2000/help"/>Item status changed</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place if the status of the control field is changed.</help:help-text>This event takes place if you select a new entry in a list or a combo box or with a check box or option field if the condition of the control field changes.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if a control field receives the focus.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place if a control field looses the focus.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs when the user presses any key while the control has the focus.</help:help-text> This event may, for example, be linked to a macro for checking entries.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs when the user releases any key while the control has the focus.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if the mouse is inside the control field.</help:help-text></p>
<p class="Head2"><help:help-id value="HID_EVT_MOUSEDRAGGED" xmlns:help="http://openoffice.org/2000/help"/>Mouse dragged while key pressed</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place when the mouse is dragged while a key is pressed.</help:help-text> An example of this is when during drag and drop an additional key determines the modus (move or copy).</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs if the mouse moves over the control.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs if the mouse button is pressed while the mouse pointer is on the control.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs if the mouse button is released while the mouse pointer is on the control.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place, when the mouse is outside the control field.</help:help-text></p>